package net.int0r.gscore.connector;

import java.util.ArrayList;

import org.apache.http.NameValuePair;
import org.apache.log4j.Logger;

import net.int0r.gscore.gobjects.User;
import net.int0r.gscore.util.GJSONObject;
import net.int0r.gscore.util.GowallaConnector;

public class UserConnector {
	private static Logger log = Logger.getLogger(UserConnector.class);

	public static User getUser(String userName) {
		ArrayList<NameValuePair> urlParms = new ArrayList<NameValuePair>();
		GJSONObject jsobj = GowallaConnector.getJSONObj(urlParms, "/users/"+userName);
		log.debug(jsobj.names());
		return new User(jsobj);
	}
}
